package com.yuanfeng.payment.service;

import com.yuanfeng.commoms.util.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface WeChatPayServices {

    String notifyWeiXinPay(HttpServletRequest request, HttpServletResponse response);

    /**
     * 获取微信网页code链接
     *
     */
    Map<String, Object> getCode(Map<String, String> paraMap);

    /**
     * 获取微信网页OpenId
     *
     */
    Map<String, Object> getOpenId(Map<String, String> paraMap);

    String plusNotifyWeiXinPay(HttpServletRequest request, HttpServletResponse response);

    /**
     * 轮询微信支付后状态
     * @param map
     * @return
     */
    ResponseResult queryWxPayStatus(Map<Object, Object> map);

    /**
     * 轮询plus 会员微信支付后状态
     * @param map
     * @return
     */
    ResponseResult queryWxPayplus(Map<Object, Object> map);

}
